<?php

namespace App;

use Eloquent;

/**
 * App\Company
 *
 * @property int $id id
 * @property string $name 企业名称
 * @property string $province 省
 * @property string $city 市
 * @property string $county 区
 * @property string $address 详细地址
 * @property string $license_business_pic 营业执照照片
 * @property string $phone 电话
 * @property string $size 规模
 * @property string $vocation 行业
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 修改时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereCity($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereCounty($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereLicenseBusinessPic($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereProvince($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereSize($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Company whereVocation($value)
 * @mixin \Eloquent
 */
class Company extends Eloquent
{
    protected $table = 'company';

    protected $guarded = [];
    /**
     * @param \DateTime|int $value
     * @return false|int
     * @author dividez
     */
    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }
}
